package com.atguigu.yygh.repository;

import com.atguigu.yygh.model.hosp.Department;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

@Repository
//实体类，主键类型
public interface DepartmentRepository extends MongoRepository<Department,String> {

    /**
     * @description: 上传科室的接口
     * @author 化一帆
     * @date 2022/11/28 10:38
     */
    Department getDepartmentByHoscodeAndDepcode(String hoscode, String depcode);
}
